/*
 * @Author: zhoulei0232
 * @Date: 2023-01-10 23:18:34
 * @LastEditTime: 2023-01-10 23:18:35
 * @LastEditors: zhoulei0232
 * @Description:
 */
import request from "@/utils/request";

// 查询列表
export function listOrderBuy(query) {
  return request({
    url: "/api/orderBuy/list",
    method: "get",
    params: query,
  });
}

// 编辑
export function updateOrderBuy(data) {
  return request({
    url: "/api/orderBuy/update",
    method: "post",
    data: data,
  });
}

// 新增
export function addOrderBuy(data) {
  return request({
    url: "/api/orderBuy/add",
    method: "post",
    data: data,
  });
}
// 商品删除
export function deleteOrderBuy(data) {
    return request({
      url: "/api/orderBuy/del",
      method: "post",
      data: data,
    });
  }

  // 审批
export function applyOrderBuy(data) {
    return request({
      url: "/api/orderBuy/apply",
      method: "post",
      data: data,
    });
  }